package com.caiwm.dao;

import com.caiwm.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface StudentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Student record);

    int insertSelective(Student record);

    Student selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);

    List selectByCondition(@Param("id") Integer id,
                           @Param("name") String name,
                           @Param("grade") String grade,
                           @Param("studentClass") String studentClass,
                           @Param("admissionDate") Date admissionDate);
}